package com.zqxq.lottery.service.user.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zqxq.lottery.entity.bo.user.UserPrizeBO;
import com.zqxq.lottery.entity.vo.order.UserOrderVO;
import com.zqxq.lottery.entity.vo.user.UserPrizeVO;
import com.zqxq.lottery.service.user.IUserPrizeService;
import com.zqxq.lottery.entity.po.user.UserPrizePO;
import com.zqxq.lottery.mapper.user.UserPrizeMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@Slf4j
public class UserPrizeServiceImpl extends ServiceImpl<UserPrizeMapper,UserPrizePO> implements IUserPrizeService {

    @Override
    public Page queryPage(UserPrizeBO search) throws Exception {
        Page page = new Page(search.getPageNo(),search.getPageSize());
        List<UserPrizeVO> list = baseMapper.queryPage(page,search);
        page.setRecords(list);
        return page;
    }
}
